xen.git
19 years ago[IA64] eliminate redundant wakeup logic
awilliam@xenbuild.aw [Mon, 20 Nov 2006 17:06:18 +0000 (10:06 -0700)]
[IA64] eliminate redundant wakeup logic

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] counter part of 12385:bfe3f8f35e87 xen-unstable.hg.
awilliam@xenbuild.aw [Mon, 20 Nov 2006 16:39:46 +0000 (09:39 -0700)]
[IA64] counter part of 12385:bfe3f8f35e87 xen-unstable.hg.

return -ENOSYS for undefined sub-functions.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] Remove unecessary MCA boot messages
awilliam@xenbuild.aw [Wed, 15 Nov 2006 19:15:34 +0000 (12:15 -0700)]
[IA64] Remove unecessary MCA boot messages

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoMerge in MCA tree
awilliam@xenbuild.aw [Wed, 15 Nov 2006 19:02:09 +0000 (12:02 -0700)]
Merge in MCA tree

19 years ago[IA64] MCA support - Disable CPE interrupt mode for dom0
awilliam@xenbuild.aw [Wed, 15 Nov 2006 18:55:04 +0000 (11:55 -0700)]
[IA64] MCA support - Disable CPE interrupt mode for dom0

   This patch disables CPE interupt mode for dom0. In current MCA
implementaion, CPE interrupts do not notify to dom0. The dom0 is
expected to get error logs in polling mode.

   Therefore I modified the ACPI table to disable CPE interrupt mode
in before the address of it is passed through to dom0. I think that
there is no problem because the initialization of ACPI is completed by
the passed time even if this modification is added.

Signed-off-by: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
19 years ago[IA64] MCA support - fix timer issue, log size issue, and limit logs to dom0
awilliam@xenbuild.aw [Wed, 15 Nov 2006 18:34:31 +0000 (11:34 -0700)]
[IA64] MCA support - fix timer issue, log size issue, and limit logs to dom0

Signed-off-by: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Tue, 14 Nov 2006 21:59:37 +0000 (14:59 -0700)]
merge with xen-unstable.hg

19 years ago[IA64] remove ASSERT in vmx_init.c
awilliam@xenbuild.aw [Tue, 14 Nov 2006 19:46:33 +0000 (12:46 -0700)]
[IA64] remove ASSERT in vmx_init.c

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
19 years ago[IA64] Add CCISS driver to build config and change nbd to a module
awilliam@xenbuild.aw [Tue, 14 Nov 2006 19:45:15 +0000 (12:45 -0700)]
[IA64] Add CCISS driver to build config and change nbd to a module

LVM complains a lot when nbd is built into the kernel

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoFix xm block-configure, by allowing the device ID to be unspecified inside
Ewan Mellor [Tue, 14 Nov 2006 18:52:58 +0000 (18:52 +0000)]
Fix xm block-configure, by allowing the device ID to be unspecified inside
device_configure (in which case it will be specified by the incoming config).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoSpeed up shadow of x86_64 Linux guests using 3 paging levels.
Tim Deegan [Tue, 14 Nov 2006 18:21:51 +0000 (18:21 +0000)]
Speed up shadow of x86_64 Linux guests using 3 paging levels.
Linux kernel 2.6.9 or older uses 3 paging levels and its direct map is
from 0x10000000000.

Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[XEN] Extend fix from 12403:680b37789200 to other emulation paths.
Tim Deegan [Tue, 14 Nov 2006 17:11:45 +0000 (17:11 +0000)]
[XEN] Extend fix from 12403:680b37789200 to other emulation paths.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[LINUX] x86/64: Fix backward compatibility to Xen 3.0.2.
kfraser@localhost.localdomain [Tue, 14 Nov 2006 17:00:05 +0000 (17:00 +0000)]
[LINUX] x86/64: Fix backward compatibility to Xen 3.0.2.
This requires us to explicitly specify _PAGE_USER for kernel mappings.
Original patch by Jan Beulich <jbeulich@novell.com> and Gerd Hoffmann.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix the "early unshadow" optimization to look at the entire pte.
George Dunlap [Tue, 14 Nov 2006 16:21:26 +0000 (11:21 -0500)]
[XEN] Fix the "early unshadow" optimization to look at the entire pte.

The optimization is designed to detect pagetable destruction, but re-uses the
pagetable entries to store data under certain conditions (paging, zeroing, &c);
sometimes the lower 8 bits are 0.  These "false positives" cause unnecessary
shadowing and unshadowing.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years ago[LINUX] Preserve flags when converting PTEs from machine to phys.
kfraser@localhost.localdomain [Tue, 14 Nov 2006 11:57:53 +0000 (11:57 +0000)]
[LINUX] Preserve flags when converting PTEs from machine to phys.
Signed-off-by: John Byrne <john.l.byrne@hp.com>
19 years ago[XENPERF] Pretty-print hypercall stats.
kfraser@localhost.localdomain [Tue, 14 Nov 2006 11:55:58 +0000 (11:55 +0000)]
[XENPERF] Pretty-print hypercall stats.
From: Yoshihiko Yaegashi <y.yaegashi@jp.fujitsu.com>
From: Ken Hironaka <kenny@logos.ic.i.u-tokyo.ac.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Don't pass spurious reserved-bit faults to the guest
Tim Deegan [Tue, 14 Nov 2006 11:52:38 +0000 (11:52 +0000)]
[XEN] Don't pass spurious reserved-bit faults to the guest
since x86_64 linux can't handle them.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't use shadow linear maps in sh_set_toplevel_shadow()
Tim Deegan [Tue, 14 Nov 2006 11:47:26 +0000 (11:47 +0000)]
[XEN] Don't use shadow linear maps in sh_set_toplevel_shadow()
because they will not be there.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN][POWERPC] Change license on public/ headers from GPL to BSD.
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:56:07 +0000 (10:56 +0000)]
[XEN][POWERPC] Change license on public/ headers from GPL to BSD.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years ago[VMXASSIST] Remove unused variable declarations to avoid compiler warning.
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:48:17 +0000 (10:48 +0000)]
[VMXASSIST] Remove unused variable declarations to avoid compiler warning.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years ago[IA64] Fix weird behaviour when configuring >3G memory for a VTI domain.
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:46:34 +0000 (10:46 +0000)]
[IA64] Fix weird behaviour when configuring >3G memory for a VTI domain.
Signed-off-by, Anthony Xu < anthony.xu@intel.com >

19 years ago[HVM] vlapic: More cleanups, simplifications and fixes.
kfraser@localhost.localdomain [Tue, 14 Nov 2006 10:44:16 +0000 (10:44 +0000)]
[HVM] vlapic: More cleanups, simplifications and fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd uuid to host record returned by host_get_record. libxen fails to parse the host...
jfehlig@jfehlig2.provo.novell.com [Tue, 14 Nov 2006 00:23:49 +0000 (17:23 -0700)]
Add uuid to host record returned by host_get_record.  libxen fails to parse the host record with this field missing.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
19 years ago[IA64] Fix xencomm for xm mem-set command
awilliam@xenbuild.aw [Mon, 13 Nov 2006 18:24:30 +0000 (11:24 -0700)]
[IA64] Fix xencomm for xm mem-set command

This patch saves and restores the hypercall parameter within xencomm.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[IA64] Fix HVM interrupts on IPF
awilliam@xenbuild.aw [Mon, 13 Nov 2006 18:02:37 +0000 (11:02 -0700)]
[IA64] Fix HVM interrupts on IPF

Xen has changed to set-irq-level hypercall from shared-memory PIC stat.
This patch makes IPF accomodate this change

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] create minimal vlapic.h
awilliam@xenbuild.aw [Mon, 13 Nov 2006 17:56:08 +0000 (10:56 -0700)]
[IA64] create minimal vlapic.h

This fixes the ia64 build for xen-unstable.hg cset 12368:fda15861731e

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Mon, 13 Nov 2006 16:58:23 +0000 (09:58 -0700)]
merge with xen-unstable.hg

19 years ago[IOEMU] Simply fake-bios init of the piix4acpi device.
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:25:48 +0000 (14:25 +0000)]
[IOEMU] Simply fake-bios init of the piix4acpi device.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][IA64] Due to IPF Guest Firmware will enumerate PCI, shutdown in
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:20:26 +0000 (14:20 +0000)]
[HVM][IA64] Due to IPF Guest Firmware will enumerate PCI, shutdown in
IPF doesn't work This patch makes shutdown work for IPF.

Signed-off-by, Anthony Xu <anthony.xu@intel.com>

19 years ago[XEN] x86-64: don't compile some unused machine check code
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:12:01 +0000 (14:12 +0000)]
[XEN] x86-64: don't compile some unused machine check code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] x86-64: don't compile some unused MTRR code
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:11:08 +0000 (14:11 +0000)]
[XEN] x86-64: don't compile some unused MTRR code
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN Remove a stray newline in a printk.
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:02:37 +0000 (14:02 +0000)]
[XEN Remove a stray newline in a printk.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[TOOLS] Add more checks for devel packages.
kfraser@localhost.localdomain [Mon, 13 Nov 2006 14:01:17 +0000 (14:01 +0000)]
[TOOLS] Add more checks for devel packages.

On different systems I ran into different build failures that can be
made more understandable by adding appropriate -devel package
installation checks.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Return -ENOSYS for undefined sub-functions.
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:58:08 +0000 (13:58 +0000)]
[XEN] Return -ENOSYS for undefined sub-functions.

Provides forward compatibility (allowing unambiguous detection of
unimplemented functionality).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] x86-64: Since all memory is visible to Xen on x86-64, there is
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:50:14 +0000 (13:50 +0000)]
[XEN] x86-64: Since all memory is visible to Xen on x86-64, there is
no need to allocate from the special Xen heap for allocations specific
to this subarch.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] eliminate unused {g,i}dt{,_descr}
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:40:21 +0000 (13:40 +0000)]
[XEN] eliminate unused {g,i}dt{,_descr}
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] x86-64: eliminate __GUEST_[CDS]S*
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:39:16 +0000 (13:39 +0000)]
[XEN] x86-64: eliminate __GUEST_[CDS]S*

These duplicate the FLAT_KERNEL_* values also used for x86-32.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[LINUX] Fix clear_fixmap().
kfraser@localhost.localdomain [Mon, 13 Nov 2006 13:37:54 +0000 (13:37 +0000)]
[LINUX] Fix clear_fixmap().

On i386-PAE, clear_fixmap() results in ill use of set_pte(). In all
contexts, p2m translations shouldn't occur here. Note that this is not
really an issue on native linux, as there is
(a) no pfn-to-mfn translation and
(b) __set_fixmap() takes an unsigned long physical address rather than
    a paddr_t, which makes it so that bits 32 and up of the physical
    address are always zero, permitting either order store when
    clearing the entry.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Add const to variable_test_bit() addr parm.
kfraser@localhost.localdomain [Mon, 13 Nov 2006 12:06:21 +0000 (12:06 +0000)]
[XEN] Add const to variable_test_bit() addr parm.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Get rid of many uses of domain_crash_synchronous().
kfraser@localhost.localdomain [Mon, 13 Nov 2006 12:01:43 +0000 (12:01 +0000)]
[XEN] Get rid of many uses of domain_crash_synchronous().

It is much more dangerous than domain_crash() because it
stops execution of teh current context regardless of
current state (e.g., IRQs disabled, locks held).

The preferred method to crash a domain is domain_crash()
and error return to the caller.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix handling of the entries-per-domain quota. Entries which are created by
Ewan Mellor [Mon, 13 Nov 2006 10:43:29 +0000 (10:43 +0000)]
Fix handling of the entries-per-domain quota.  Entries which are created by
the guest but deleted by dom0 were remaining accounted against the guest,
which meant that the guest would eventually run out of quota.

This patch also prevents unprivileged domains from changing the owner of a
node.  One guest could attack another by creating nodes and then transferring
them to the ownership of another, and though the accounting could be made to
work properly in this case, domains should never be transferring nodes in any
case, so it seems safer just to disallow the operation entirely.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[VMX] A few small cleanups.
kfraser@localhost.localdomain [Mon, 13 Nov 2006 09:49:12 +0000 (09:49 +0000)]
[VMX] A few small cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[IOEMU] Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0"
kfraser@localhost.localdomain [Mon, 13 Nov 2006 09:46:05 +0000 (09:46 +0000)]
[IOEMU] Fix Linux smp guest hangs with complaint "BUG: soft lock detected on CPU#0"

When console=ttyS0 in guest grub configuration and serial='pty' in vmx
configure file. The root cause to this bug is the characteristic of
PTY emulator in Qemu. PTY has write/read end with some buffer. Write
to a buffer will be failed after the buffer is full until read end
reads the data from buffer.

Previous to changeset 12026, write to serial port would fail quietly
when buffer for pty is full. With changeset 12026, write to serial
port would retry 3 times in 300ms if failed, even without notifying
guest using serial irq. Smp guest will hang, waiting for an
interrupt. For SMP guest, a watchdog thread should be executed
periodically, otherwise soft lockup is detected. With this patch, an
upper threshold of total consecutive retries is added and serial
interrupt would be sent after retry 3 times for each write request,
even if failed.

Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PRIVCMD] Fix build warning when sizeof(long) > sizeof(int).
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:40:16 +0000 (01:40 +0000)]
[PRIVCMD] Fix build warning when sizeof(long) > sizeof(int).
Original patch from Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LIBFS] IA64 & PPC aren't making use of this right now, but it's silly to
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:25:00 +0000 (01:25 +0000)]
[LIBFS] IA64 & PPC aren't making use of this right now, but it's silly to
have the build fail for some trivial x86 specific assembly.  I snagged the
appropriate bitops for ia64 and ppc (untested) and tossed in an
unoptimized option as well in case we want to make use of it.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[XENSTORED] Fix errno 'leak' in xenstored.
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:23:11 +0000 (01:23 +0000)]
[XENSTORED] Fix errno 'leak' in xenstored.

In certain cases, when a client doesn't have enough permissions, the
errno variable is not set in xenstored_core.c before its value is
reported back.  As a result, the client can learn about the errno of
the last failed request to xenstored (which could have come from
another client).  (An unintended information channel! :-)

From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoqemu error message for xc_domain_translate_gpfn_list() failure incorrect
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:19:26 +0000 (01:19 +0000)]
qemu error message for xc_domain_translate_gpfn_list() failure incorrect
Signed-off-by: Russell Blaine <russell.blaine@sun.com>
19 years agoFix integer overflow problem with libfsimage grub plugins.
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:17:57 +0000 (01:17 +0000)]
Fix integer overflow problem with libfsimage grub plugins.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[VMXASSIST] Support all data segments in mov_to_seg().
kaf24@localhost.localdomain [Sat, 11 Nov 2006 01:16:40 +0000 (01:16 +0000)]
[VMXASSIST] Support all data segments in mov_to_seg().

This patch lets Plan9 crash at the same location before the original
patch by Stephen Tweedie.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[IA64] Guest PAL_INIT support for IPI
awilliam@xenbuild.aw [Fri, 10 Nov 2006 20:01:23 +0000 (13:01 -0700)]
[IA64] Guest PAL_INIT support for IPI

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
19 years ago[IA64] fix merge error
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:55:52 +0000 (12:55 -0700)]
[IA64] fix merge error

Fix cut-n-paste error from manually merging patch

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] faults.c indentation
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:37:34 +0000 (12:37 -0700)]
[IA64] faults.c indentation

Run arch/ia64/xen/faults.c through Lindent to make it manageble.

Signed-off-by: Jes Sorensen <jes@sgi.com>
19 years ago[IA64] Remove unused function in efi.c
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:04:55 +0000 (12:04 -0700)]
[IA64] Remove unused function in efi.c

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[IA64] Fix time services of EFI emulation
awilliam@xenbuild.aw [Fri, 10 Nov 2006 19:03:19 +0000 (12:03 -0700)]
[IA64] Fix time services of EFI emulation

This patch serializes the execution of following efi.runtimes.
  - GetTime
  - SetTime
  - GetWakeTime
  - SetWakeTime

Linux/ia64 uses similar spinlocks in the EFI RTC driver.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[IA64] Support Xen/IA64 self-grant-table-page-mapping.
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:44:38 +0000 (11:44 -0700)]
[IA64] Support Xen/IA64 self-grant-table-page-mapping.

Before the changeset 10677:2937703f0ed0 of xen-unstable.hg,
it is prohibited mapping a page which is granted by self domain.
However it is allowed in order to mount blktap image by dom0.
This patch is necessary to support blktap on Xen/IA64.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] preliminary clean up ia64 mm.c for blktap dom0 mount support.
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:34:39 +0000 (11:34 -0700)]
[IA64] preliminary clean up ia64 mm.c for blktap dom0 mount support.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[HVM] vlapic: No use of domain_crash_synchronous().
kfraser@localhost.localdomain [Fri, 10 Nov 2006 18:27:35 +0000 (18:27 +0000)]
[HVM] vlapic: No use of domain_crash_synchronous().
The safer domain_crash() is sufficient.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Simplify apic dest-matching code. Refactor
kfraser@localhost.localdomain [Fri, 10 Nov 2006 18:20:49 +0000 (18:20 +0000)]
[HVM] Simplify apic dest-matching code. Refactor
across vlapic/vioapic source files to reduce code
duplication.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64] Fix SMP Windows boot failure
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:19:57 +0000 (11:19 -0700)]
[IA64] Fix SMP Windows boot failure

Sometime SMP Windows can't boot, the root cause is guest timer interrupt
is lost.

This patch fixes following issues.
1. Windows uses different way to sync itc.
2. Previously when Guest timer fires and guest ITV is masked, XEN will
   desert this Guest timer interrupt. It is not correct for windows,
   windows may expect this timer interrupt.
3. Windows may use different way to set timer in some situations.
   Windows first sets itm (which may be smaller than current itc), and
   then sets itc (which is samller than itm).
   XEN can support this way to set timer.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] fix vmx handler fault
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:19:51 +0000 (11:19 -0700)]
[IA64] fix vmx handler fault

This patch fixes the vmx fault handler to set the fault vector
number in r19.  The r19 is used to display a fault message in
dispatch_to_fault_handler().

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
19 years ago[IA64] fix VTI boot
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:51 +0000 (11:14 -0700)]
[IA64] fix VTI boot

workaroud patch for memory initial interface

Signed-off-by: zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
19 years ago[IA64] build fixes
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:47 +0000 (11:14 -0700)]
[IA64] build fixes

Add defines to fix hvm_vioapic and trivial warning fix.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] fix xencomm_handle_is_null().
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:42 +0000 (11:14 -0700)]
[IA64] fix xencomm_handle_is_null().

It checks only desc->address[0]. However xencomm_add_offset() may
sets XENCOMM_INVALID while there left consumable bytes.
In such a case xencomm_handle_is_null() returns true wrongly.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] compilation fix
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:36 +0000 (11:14 -0700)]
[IA64] compilation fix

asmlinkage definition is needed in xen/asm-ia64/config.h.
It is necessary for xen/include/xen/acpi.h

Inadvertently removed from xen-unstable.hg in cset 12266:0c332cf81e64

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] IA64 counter part of the change 12204:e6fdb32b786c of xen-unstable.hg
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:32 +0000 (11:14 -0700)]
[IA64] IA64 counter part of the change 12204:e6fdb32b786c of xen-unstable.hg

Remove xc_ia64_get_pfn_list() from setup_guest() in xc_linux_build.c,
use xc_domain_populate_physmap() and xc_domain_translate_gpfn_list().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] fix ia64 linux domain builder broken by 12009:4a320d26fc24 of xen-unstable.hg.
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:14:26 +0000 (11:14 -0700)]
[IA64] fix ia64 linux domain builder broken by 12009:4a320d26fc24 of xen-unstable.hg.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Fri, 10 Nov 2006 18:11:04 +0000 (11:11 -0700)]
merge with xen-unstable.hg

19 years agoIf domain_crash_synchronous() is called in the context of a multicall,
kfraser@localhost.localdomain [Fri, 10 Nov 2006 17:47:15 +0000 (17:47 +0000)]
If domain_crash_synchronous() is called in the context of a multicall,
the (physical) CPU this was executing on did not get its multicall
state cleared and would reject any further multicalls, likely leading
to crashing dom0 at some point.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[LINUX] Support variable hypervisor_virt_start.
kfraser@localhost.localdomain [Fri, 10 Nov 2006 17:35:09 +0000 (17:35 +0000)]
[LINUX] Support variable hypervisor_virt_start.

Introduce a new elfnote that specifies the lower boundary the kernel
wants to tolerate for the hypervisor hole.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[VMXASSIST] Emulate pop %ds and mov reg->{ds,es}.
kfraser@localhost.localdomain [Fri, 10 Nov 2006 17:21:54 +0000 (17:21 +0000)]
[VMXASSIST] Emulate pop %ds and mov reg->{ds,es}.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64,PPC] Fix xencomm_add_offset(). index must be incremented.
kfraser@localhost.localdomain [Fri, 10 Nov 2006 15:27:22 +0000 (15:27 +0000)]
[IA64,PPC] Fix xencomm_add_offset(). index must be incremented.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoRevert 12361:32f7b40ace426d3acdf26c21c20cb6b4562d9f10.
kfraser@localhost.localdomain [Fri, 10 Nov 2006 14:53:00 +0000 (14:53 +0000)]
Revert 12361:32f7b40ace426d3acdf26c21c20cb6b4562d9f10.
We should support the XENMEM_memory_map hypercall properly
to fix this issue.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoWhen running tests unattended it's useful to know how long they have
Ewan Mellor [Fri, 10 Nov 2006 14:26:14 +0000 (14:26 +0000)]
When running tests unattended it's useful to know how long they have
taken, as (significantly) increasing the runtime (without introducing
failures) can be considered a regression.  This patch adds a block like:

====
Xm-test timing summary:
  Run Started : Fri, 10 Nov 2006 14:53:18 +1100
  Run Stopped : Fri, 10 Nov 2006 14:53:20 +1100
====

to the generated report.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years ago[LINUX] Extend physical mapping to maxmem instead of mem
kfraser@localhost.localdomain [Fri, 10 Nov 2006 14:22:30 +0000 (14:22 +0000)]
[LINUX] Extend physical mapping to maxmem instead of mem

As currently physical mapping only reaches the initial reservation,
we're unable to balloon up to more than mem (even when maxmem > mem)
in any situation.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
19 years ago[XEN] memory_op hypercall does not use guest_handle_add_offset().
kfraser@localhost.localdomain [Fri, 10 Nov 2006 14:22:17 +0000 (14:22 +0000)]
[XEN] memory_op hypercall does not use guest_handle_add_offset().

It was causing compatibility issues across architectures as
on x86 the effect would not persist across a continuation. On
x86/64 and powerpc (both of which use xencomm) the effect would
persist. This patch sidesteps the whole issue.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Add missing parameter and import from XendAPI and XendCheckpoint.
Alastair Tse [Fri, 10 Nov 2006 13:09:01 +0000 (13:09 +0000)]
[XEND] Add missing parameter and import from XendAPI and XendCheckpoint.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoMerge
Alastair Tse [Fri, 10 Nov 2006 12:49:54 +0000 (12:49 +0000)]
Merge

19 years ago[XEND] Make clear the distinction between backendPath and backendRoot
Alastair Tse [Fri, 10 Nov 2006 12:49:22 +0000 (12:49 +0000)]
[XEND] Make clear the distinction between backendPath and backendRoot
in DevController.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND][XM] Fix sched-sedf to return the domid to correspond with xc.c
Alastair Tse [Fri, 10 Nov 2006 12:48:18 +0000 (12:48 +0000)]
[XEND][XM] Fix sched-sedf to return the domid to correspond with xc.c

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Add missing implementation for host_set_name_{label,description}.
Alastair Tse [Fri, 10 Nov 2006 12:46:25 +0000 (12:46 +0000)]
[XEND] Add missing implementation for host_set_name_{label,description}.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Make xapi.py work with modules in /usr/lib/python.
Alastair Tse [Fri, 10 Nov 2006 12:44:47 +0000 (12:44 +0000)]
[XENAPI] Make xapi.py work with modules in /usr/lib/python.

Also Add host_set_name command.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoPV-on-HVM: TSO support prior to 2.6.9 appears to be unreliable,
Ian Campbell [Fri, 10 Nov 2006 12:34:28 +0000 (12:34 +0000)]
PV-on-HVM: TSO support prior to 2.6.9 appears to be unreliable,
especially when firewalling is enabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoPV-on-HVM: Do not enable barriers in blkfront before 2.6.16
Ian Campbell [Fri, 10 Nov 2006 12:34:26 +0000 (12:34 +0000)]
PV-on-HVM: Do not enable barriers in blkfront before 2.6.16

Barrier support was rewritten after 2.6.15. Perhaps it would be
possible to implement support for old kernels as well but for now it
is easier to just disable them.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LIBFSIMAGE] Don't leak FDs or RAM when closing filesystems
Tim Deegan [Fri, 10 Nov 2006 12:27:56 +0000 (12:27 +0000)]
[LIBFSIMAGE] Don't leak FDs or RAM when closing filesystems
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Remove HVM halt timer. It's no longer needed since interrupts
kfraser@localhost.localdomain [Fri, 10 Nov 2006 11:01:15 +0000 (11:01 +0000)]
[HVM] Remove HVM halt timer. It's no longer needed since interrupts
can wake it up now.

Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[HVM] Remove a duplicated range checking in vioapic_set_irq.
kfraser@localhost.localdomain [Fri, 10 Nov 2006 10:31:29 +0000 (10:31 +0000)]
[HVM] Remove a duplicated range checking in vioapic_set_irq.
Since irq range checking has already been done at the
beginning of this function.

Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[HVM] Clarify ioreq interactions between Xen and qemu-dm.
kfraser@localhost.localdomain [Fri, 10 Nov 2006 10:30:38 +0000 (10:30 +0000)]
[HVM] Clarify ioreq interactions between Xen and qemu-dm.

Mainly this involves placing appropriate barriers before
updating the shared state variable, and after reading from it. The
model is that it is state switches that drive the transfer of data to
and fro in the shared ioreq structure. So writers should wmb() before
updating the variable; readers should rmb() after seeing a state
change.

These barriers aren't actually required given the current code
structure since the communication flow is really driven by
event-channel notifications, which happen to provide a sufficient
barrier. However, relying on this for all time and on all
architectures seems foolish and the barriers have negligible cost
compared with the totoal ioreq round-trip latency. Also the model of
communications being driven by the shared-memory state variable more
closely matches other inter-domain protocols (where there is usually a
shared-memory producer index), and is hence a model we are familiar
with and likely to implement correctly.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LIBFSIMAGE] Further 64bit compile fix
Tim Deegan [Fri, 10 Nov 2006 09:50:35 +0000 (09:50 +0000)]
[LIBFSIMAGE] Further 64bit compile fix
64bit libext2fs can have __u64 defined as unsigned long long,
while a uint64_t is unsigned long, and GCC complains.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[LIBFSIMAGE] Fix printf-format warning on x86/64.
kaf24@firebug.cl.cam.ac.uk [Fri, 10 Nov 2006 07:48:25 +0000 (07:48 +0000)]
[LIBFSIMAGE] Fix printf-format warning on x86/64.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years agoParsing 'df' output is extremely non-portable. Replace with a direct statvfs().
john.levon@sun.com [Thu, 9 Nov 2006 23:03:51 +0000 (15:03 -0800)]
Parsing 'df' output is extremely non-portable. Replace with a direct statvfs().

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[XEN] Emulate IN/OUT instructions with full guest GPR context.
kfraser@localhost.localdomain [Mon, 13 Nov 2006 16:19:38 +0000 (16:19 +0000)]
[XEN] Emulate IN/OUT instructions with full guest GPR context.
Based on a patch by Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoServer-side capitalisation fixes.
Ewan Mellor [Thu, 9 Nov 2006 15:43:24 +0000 (15:43 +0000)]
Server-side capitalisation fixes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoThe attached patch implements more of the Xen-API functionality related
Ewan Mellor [Thu, 9 Nov 2006 15:27:32 +0000 (15:27 +0000)]
The attached patch implements more of the Xen-API functionality related
to the vTPM.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoRename abstract_value.double_val -> float_val. All the other names match the
Ewan Mellor [Thu, 9 Nov 2006 11:40:28 +0000 (11:40 +0000)]
Rename abstract_value.double_val -> float_val.  All the other names match the
abstract type names in the doc, so this one should too.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded a destroy method for each object. Based upon the code for VM.destroy
Ewan Mellor [Thu, 9 Nov 2006 11:37:35 +0000 (11:37 +0000)]
Added a destroy method for each object.  Based upon the code for VM.destroy
by Jim Fehlig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMore capitalisation fixes -- the on-wire method name should match the
Ewan Mellor [Thu, 9 Nov 2006 11:23:09 +0000 (11:23 +0000)]
More capitalisation fixes -- the on-wire method name should match the
documentation in terms of capitalisation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMinor tidying.
Ewan Mellor [Thu, 9 Nov 2006 11:11:38 +0000 (11:11 +0000)]
Minor tidying.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace uses of the typename (e.g. xen_host) where its used as a variable name.
Ewan Mellor [Thu, 9 Nov 2006 11:02:48 +0000 (11:02 +0000)]
Replace uses of the typename (e.g. xen_host) where its used as a variable name.
This is an unusual style, and out of sync with the rest of the library.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Change vlapic printk()s into appropriate gdprintk()s.
kfraser@localhost.localdomain [Thu, 9 Nov 2006 18:14:53 +0000 (18:14 +0000)]
[HVM] Change vlapic printk()s into appropriate gdprintk()s.
Simplify apic_round_robin().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Clean up two small APIC TDCR issues.
kfraser@localhost.localdomain [Thu, 9 Nov 2006 17:53:05 +0000 (17:53 +0000)]
[HVM] Clean up two small APIC TDCR issues.

First, only save the bits that can be set, so that on a subsequent
read can't see MBZ bits as set. Next, be sure to initialize the
timer_divide_count, which is derived from the TDCR.  This avoids a
potential divide-by-zero elsewhere in the code.

The original patch was provided by Ben Thomas <ben@virtualiron.com>.
This modified version refactors the code slightly and renames
timer_divide_count to timer_divisor.

Signed-off-by: Keir Fraser <keir@xensource.com>